<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Management/Manage.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="CSI.Directory.Core.Model"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <script type="text/javascript">
     $(document).ready(function () {

         $("a").removeClass("current");
         $("#dashboard").addClass("current");
         

     });
</script>
   <div class="content-box">
        <!-- Start Content Box -->
        <div class="content-box-header" style="padding:4px 0px 0px 10px;">
            <h3>Expired</h3>
            <div class="clear">
            </div>
        </div>
          <div class="content-box-content">
          <div id="results"></div>
          <div class="tab-content default-tab" id="tab1">
            <table>
                    <thead>
                    <tr>
                    <th>Name</th>
                    <th>Create Date</th>
                    <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <% foreach (var l in (IList<User>)ViewData["Expired"])
                    {%>
                    <tr>
                    <td><a href="/Management/EditUser/<%= l.Id%>"><%=l.Name %></a> </td>
                    <td><%=l.CreateDate%></td>
                    <td><a href="/Management/RenewUser/<%=l.Id %>">Renew</a></td>
                    
                   
                    </tr>
                    <%} %>
                    </tbody>
            </table>
           </div>
        </div>
  </div>
<div class="content-box">
        <!-- Start Content Box -->
        <div class="content-box-header" style="padding:4px 0px 0px 10px;">
            <h3>Expiring Soon</h3>
            <div class="clear">
            </div>
        </div>
          <div class="content-box-content">
          <div id="Div1"></div>
          <div class="tab-content default-tab" id="Div2">
            <table>
                    <thead>
                    <tr>
                    <th>Name</th>
                    <th>Create Date</th>
                    <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <% foreach (var l in (IList<User>)ViewData["Expiring"])
                    {%>
                    <tr>
                    <td><a href="/Management/EditUser/<%= l.Id%>"><%=l.Name %></a> </td>
                    <td><%=l.CreateDate%></td>
                   
                    <td><a href="/Management/RenewUser/<%=l.Id %>">Renew</a></td>
                   
                    </tr>
                    <%} %>
                    </tbody>
            </table>
           </div>
        </div>
  </div>
</asp:Content>
